# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=wayvnc
pkgver=0.7.2
pkgrel=0
pkgdesc="A VNC server for wlroots-based Wayland compositors"
url="https://github.com/any1/wayvnc"
license="ISC"
arch="all"
makedepends="
	bsd-compat-headers
	jansson-dev
	libuv-dev
	libxkbcommon-dev
	meson
	neatvnc-dev
	scdoc
	wayland-dev
	"
subpackages="$pkgname-dbg $pkgname-doc"
source="https://github.com/any1/wayvnc/archive/v$pkgver/wayvnc-$pkgver.tar.gz"
options="!check" # no test suite

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
2c37c8b20d24ace47c73ad552dbb812601657ae7c699f0a3e9319eff486c8157f6a1fcb072b5badd323c1886723dd0e720bbcdbdfc7091f3706f7283ad240d14  wayvnc-0.7.2.tar.gz
"
